package com.ysd.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ysd.entity.LeaveMessages;
import com.ysd.mapper.LeaveMessagesMapper;
import com.ysd.service.LeaveMessagesService;
@Service
public class LeaveMessagesServiceImpl implements LeaveMessagesService {
	@Autowired 
	private LeaveMessagesMapper leaveMessagesMapper;
	@Override
	public int addMessages(LeaveMessages leaveMessages) {
		// TODO Auto-generated method stub
		return leaveMessagesMapper.addMessage(leaveMessages);
	}
	@Override
	public List<LeaveMessages> getMessages(LeaveMessages leaveMessages) {
		// TODO Auto-generated method stub
		return leaveMessagesMapper.getMessages(leaveMessages);
	}
	@Override
	public int getCount(LeaveMessages leaveMessages) {
		// TODO Auto-generated method stub
		return leaveMessagesMapper.getCount(leaveMessages);
	}
	@Override
	public int updateMessages(LeaveMessages leaveMessages) {
		// TODO Auto-generated method stub
		return leaveMessagesMapper.updateMessages(leaveMessages);
	}
}
